package com.toe.pojo.entity.forum;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 文章表
 * </p>
 *
 * @author 陶涛
 * @since 2022-07-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ForumArticle对象", description="文章表")
public class ForumArticle implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "文章分类id")
    private Long categoryId;

    @ApiModelProperty(value = "文章标题")
    private String title;

    @ApiModelProperty(value = "文章正文")
    private String coryWriting;

    @ApiModelProperty(value = "文章作者")
    private String authorNickname;

    @ApiModelProperty(value = "文章作者头像")
    private String avatar;

    @ApiModelProperty(value = "作者id")
    private Long authorId;

    @ApiModelProperty(value = "浏览量")
    private Long pageView;

    @ApiModelProperty(value = "点赞量")
    private Long likeCount;

    @ApiModelProperty(value = "收藏量")
    private Long enshrineCount;

    @ApiModelProperty(value = "是否被举报,0表示未举报,1表示被举报")
    private Integer isReport;

    @ApiModelProperty(value = "数据创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "数据最后修改时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;


}
